package com.td.module.system.convert.growth;

import com.td.framework.common.pojo.PageResult;
import com.td.module.system.controller.admin.growth.vo.list.GrowthModuleListCreateReqVO;
import com.td.module.system.controller.admin.growth.vo.list.GrowthModuleListExcelVO;
import com.td.module.system.controller.admin.growth.vo.list.GrowthModuleListRespVO;
import com.td.module.system.controller.admin.growth.vo.list.GrowthModuleListUpdateReqVO;
import com.td.module.system.dal.dataobject.growth.GrowthModuleListDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 生长模型列 Convert
 *
 * @author wangxx
 */
@Mapper
public interface GrowthModuleListConvert {

    GrowthModuleListConvert INSTANCE = Mappers.getMapper(GrowthModuleListConvert.class);

    GrowthModuleListDO convert(GrowthModuleListCreateReqVO bean);

    GrowthModuleListDO convert(GrowthModuleListUpdateReqVO bean);

    GrowthModuleListRespVO convert(GrowthModuleListDO bean);

    List<GrowthModuleListRespVO> convertList(List<GrowthModuleListDO> list);

    PageResult<GrowthModuleListRespVO> convertPage(PageResult<GrowthModuleListDO> page);

    List<GrowthModuleListExcelVO> convertList02(List<GrowthModuleListDO> list);

}
